/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cabarrus.xltosql;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;

/**
 *
 * @author moscac
 */
public class XLToSQLTemplateColumn implements Serializable {

    public XLToSQLTemplateColumn() {

        this.tc_id = new Integer(0);
        tc_dbColumnType = new Integer(0);

    }

    public String getTc_dbColumnName() {
        return tc_dbColumnName;
    }

    public void setTc_dbColumnName(String tc_dbColumnName) {
        String oldValue = this.tc_dbColumnName;
        this.tc_dbColumnName = tc_dbColumnName;
        changeSupport.firePropertyChange("tc_dbColumnName", oldValue, this.tc_dbColumnName);
    }

    public Integer getTc_id() {
        return tc_id;
    }

    public void setTc_id(Integer tc_id) {
        Integer oldValue = tc_id;
        this.tc_id = tc_id;
        changeSupport.firePropertyChange("tc_id", oldValue, this.tc_id);
    }

    public Integer getTc_tt_id() {
        return tc_tt_id;
    }

    public void setTc_tt_id(Integer tc_tt_id) {
        Integer oldValue = tc_tt_id;
        this.tc_tt_id = tc_tt_id;
        changeSupport.firePropertyChange("tc_tt_id", oldValue, this.tc_tt_id);
    }

    public Integer getTc_dbColumnType() {
        return tc_dbColumnType;
    }

    public void setTc_dbColumnType(Integer tc_dbColumnType) {
        this.tc_dbColumnType = tc_dbColumnType;
    }

    public String getTc_defaultValue() {
        return tc_defaultValue;
    }

    public void setTc_defaultValue(String tc_defaultValue) {
        this.tc_defaultValue = tc_defaultValue;
    }

    public String getTc_xlColumnName() {
        return tc_xlColumnName;
    }

    public void setTc_xlColumnName(String tc_xlColumnName) {
        this.tc_xlColumnName = tc_xlColumnName;
    }
    
    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private Integer tc_id;
    private Integer tc_tt_id;
    private String tc_xlColumnName = "";
    private String tc_defaultValue = "";
    private String tc_dbColumnName = "";
    private Integer tc_dbColumnType; // java.sql.Types

}
